import axios from "axios";
export default{
    query:(params)=>{
        return axios({
            method:'GET',
            url:'/userinfo',
            params
        })
    },
    add:(data)=>{
        return axios({
            method:'POST',
            url:'/userinfo',
            data
        })
    },
    del:(id)=>{
        return axios({
            method:'DELETE',
            url:'/userinfo'+id
        })
    }
}